import request from '@/utils/request'

// 查询兑换说明列表
export function listStep (query) {
  return request({
    url: '/system/step/list',
    method: 'get',
    params: query
  })
}

// 查询兑换说明详细
export function getStep (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/step/getInfo',
    method: 'get',
    params: params
  })
}

// 新增兑换说明
export function addStep (data) {
  return request({
    url: '/system/step/insert',
    method: 'post',
    data: data
  })
}

// 修改兑换说明
export function updateStep (data) {
  return request({
    url: '/system/step/update',
    method: 'post',
    data: data
  })
}

// 删除兑换说明
export function delStep (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/step/delete',
    method: 'post',
    params: params
  })
}
// 批量删除兑换说明
export function delBatchStep (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/step/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入兑换说明
export function importData (data) {
  return request({
    url: '/system/step/importData',
    method: 'post',
    data: data
  })
}
